home *** CD-ROM | disk | FTP | other *** search
/ Power Game Pak 2 / Power Game Pak volume 2.iso / mw2demo / install.bat < prev    next >
DOS Batch File  |  1995-09-28  |  2KB  |  106 lines

  1. @echo off
  2. cls
  3. if "%1"=="" goto format
  4. if not exist compress.exe goto nocompress
  5. echo.
  6. echo You are about to install the MechWarrior 2 demo.
  7. echo.
  8. echo This demo will be installed from the current drive to
  9. echo the \MW2DEMO directory on your %1 drive.
  10. echo.
  11. echo Do you want to proceed with the installation?
  12. echo.
  13. echo     1 = Yes, Please install the demo.
  14. echo     2 = No, I don't want to install the demo at this time.
  15. echo.
  16. choice /c:12
  17. if errorlevel 2 goto installnot
  18. if errorlevel 1 goto installit
  19.  
  20. :installit
  21. echo.
  22. deltree %1\mw2demo
  23. echo.
  24. echo Installing game files...
  25. echo.
  26. md %1\mw2demo
  27. move compress.exe %1\mw2demo
  28. copy install.bat %1\mw2demo
  29. %1
  30. cd \mw2demo
  31. compress
  32. del compress.exe
  33. del install.bat
  34. cls
  35.  
  36. if not exist %1\mw2demo\vfx\vesa768.dll goto spaceout
  37.  
  38. echo.
  39. echo Installation complete.  
  40. echo.
  41. echo.
  42. %1
  43. cd\mw2demo
  44. setup
  45. goto end
  46. cls
  47.  
  48. :installnot
  49. cls
  50. echo.
  51. echo Installation cancelled.
  52. echo.
  53. echo Thank you for using the MechWarrior 2 demo.
  54. echo.
  55. goto end
  56.  
  57. :format
  58. echo.
  59. echo You must use the following format to install MechWarrior 2:
  60. echo.
  61. echo    INSTALL [drive to install to]
  62. echo.
  63. echo For instance, if you wish to install MechWarrior 2 to drive C:,
  64. echo you would type the following:
  65. echo.
  66. echo     INSTALL C:
  67. echo.
  68. echo.
  69. goto end
  70.  
  71. :spaceout
  72. echo.
  73. echo You are out of disk space.  You need about 18 MB's of hard drive
  74. echo space on your %1 drive to install the MechWarrior 2 demo.  The game,
  75. echo after installation, will require 12.5 MB's of hard drive space.  Please
  76. echo clear enough space or install to another drive with enough free
  77. echo disk space.  The MechWarrior 2 demo directory will now be deleted.
  78. echo.
  79. echo.
  80. %1
  81. cd \
  82. deltree mw2demo
  83. goto end
  84.  
  85. :nocompress
  86. if not exist mw2demo2.exe goto nomech2dem
  87. echo.
  88. echo INSTALL could not find the file COMPRESS.EXE in your current directory.
  89. echo However, in order to create this file, you need only run MW2DEMO2.EXE
  90. echo which IS located in this directory.  After running this file, please
  91. echo run INSTALL again.
  92. echo.
  93. goto end
  94.  
  95. :nomech2dem
  96. echo.
  97. echo INSTALL could not find the file COMPRESS.EXE in your current directory.
  98. echo This file is needed in order to install MechWarrior 2.  However, in
  99. echo order to create this file, you need only download and run MW2DEMO2.EXE
  100. echo which you can find on you local BBS or online service.
  101. echo.
  102. goto end
  103.  
  104. :end
  105. @echo on
  106.